<style scoped src="./index.scss" lang="scss" rel="stylesheet/scss"></style>
<template src="./index.html"></template>
<script>
// import Edit from "./../edit/index";
export default {
    mixins: [
        Vue.prototype.$vFN.Mixins.Base,
        Vue.prototype.$vFN.Mixins.Page,
        Vue.prototype.$vFN.Mixins.Table,
    ],
    components: {
        SelectDataGoods: async () =>
            Vue.extend(await Vue.prototype.$vFN.Components.Base.SelectDataGoods()),
    },
    data() {
        return {
            appWindow: window,
            // 页面接口地址
            apiUrl: {
                list: "plugin/supply/StbzProduct/getList",
                delete: "",
            },
            // 表格查询数据
            mixinTable_tableSearchData: {
                // title: "",
            },
            // 列表高级查询参数
            mixinTable_tableSearchSenior: {
                status: {
                    type: Number,
                    value: "",
                    default: 0,
                },

            },
            // 表格数据
            tableData: [],
            // 表格数据删除展示结构
            tableDeleteConfig: {
                columns: [
                    {
                        label: "分类名称",
                        prop: "name",
                        type: "",
                    },
                    {
                        label: "绑定门店数",
                        prop: "count",
                        type: "",
                    },
                ],
            },
            // 分类列表1、2、3级
            option1: [],
            option2: [],
            option3: [],

            // 
            categoryId1: "",
            categoryId2: "",
            categoryId3: "",

            checkList: [],

            type: "created_time",
        };
    },
    
    methods: {



        // 打开添加/修改
        editBoxOpen(params_) {
            Edit.init({
                // mixinEdit_parent: this,
                // mixinEdit_editType: params_.type,
                checkList: this.mixinTable_selectTableData,
                onSuccess:() => {
                    this.mixinTable_refreshData();
                }
            });
        },
        // 初始化
        async init() {
            // this.getClass()
            this.mixinTable_refreshData();
        },
    },
    mounted() {
        this.init();
    },
    activated() {},
};
</script>